﻿#region Includes
using System;
using System.Collections.Generic;
#endregion

namespace GingerGL.Drawing.MD3
{
    //------------------------------------------------------------//
    /// <summary>
    /// Connected Component
    /// <para>Used to Sort and Connect Objects</para>
    /// </summary>
    internal class ConnectedComponent
    {
        //--------------------------------------------------------//
        #region Variables
        /// <summary>
        /// Component Part
        /// </summary>
        internal Component Part;
        /// <summary>
        /// List of Child Parts
        /// </summary>
        internal Dictionary<Tag, List<ConnectedComponent>> Children = new Dictionary<Tag,List<ConnectedComponent>>();
        #endregion
        //--------------------------------------------------------//
        #region Constructors
        /// <summary>
        /// Initializes a new instance object
        /// </summary>
        public ConnectedComponent(Component part) { Part = part; }
        #endregion
        //--------------------------------------------------------//
    }
    //------------------------------------------------------------//
}
